import { service } from "../http/request";


  // 获取职位信息
  const getAllPostions = () => {
    return service({
      method:'get',
      url: 'system/basic/position/'
    })
  }


  // 添加职位
  const addPosition = (params) => {
    return service({
      method:'post',
      url: 'system/basic/position/',
      data:params
    })
  }

  // 删除职位
  const deletePosition = (id) => {
    return service({
      method:'delete',
      url:'system/basic/position/' + id
    })
  }

  //  批量删除
  const updateBatchPos = (ids) => {
    return service({
      method:'delete',
      url:'system/basic/position/',
      data:ids
    })
  }

  // 更新职位
  const updatePosition = (params) => {
    return service({
      method:'put',
      url:'system/basic/position/',
      data:params
    })
  }






export default {
  getAllPostions,
  addPosition,
  deletePosition,
  updatePosition,
  updateBatchPos
}
